"""
@Project:p8项目
@File:mains.py
@Author:柴奇峰
@Date:20:14
"""
from celery import Celery

# include =[] 元素是任务
apps = Celery('worker')
# 加载配置文件
apps.config_from_object('celerys.celeryconfig')
# 自动发现任务
apps.autodiscover_tasks(['celerys.sms.smscode'])


# celery -A celerys.mains worker --loglevel=info -P eventlet